home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 1376 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: news.ox.ac.uk!news
  2. From: Nick Christie <nick.christie@oucs.ox.ac.uk>
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: EMAIL Formats
  5. Date: 12 Feb 1996 20:26:36 GMT
  6. Organization: Oxford University Computing Services
  7. Message-ID: <4fo7ps$2g@news.ox.ac.uk>
  8. References: <19960210.7C1DE70.A64A@ccubb.com>
  9. NNTP-Posting-Host: nick.oucs.ox.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. devans@ccubb.com (David Evans) wrote:
  16. >Basically, the standard email box for a user contains each letter appended to
  17. >the other.  The format of a mail item appears to consist of basically the
  18. >"header" followed by the text of the item.  The second "letter" in a persons
  19. >mailbox follows the last letters text and begins with another "header".
  20.  
  21. Many systems adopt the Unix semi-standard mailbox format of appended
  22. messages, delineated by a line that starts with "From " (note space, not
  23. colon) and followed, usually, by an email address and date-time stamp.
  24. The next line is the first line of the message header, which continues
  25. until the next empty line. Lines up to the next "From " delineator are
  26. the message body.
  27.  
  28. For example,
  29.   |From user@pophost Mon, 12 Feb 1996 20:20:00 +0000
  30.   |Received: by foo@bar with SMTP...
  31.   |[more header fields...]
  32.   |
  33.   |The message body starts here and continues until the next "From ".
  34.  
  35. The "From " bit is a bastard to parse, as that phrase could quite
  36. conceivably be at the beginning of a line in the message body.
  37. And you can't check for the following email address or date-time
  38. stamp either, as those can take many forms, too.
  39.  
  40. AFAIK, you're stuck with searching for a line that begins with "From ",
  41. followed a line that starts with one or more alphanumerics followed by
  42. a colon (the first field name in the header, in other words). Yuck!
  43.  
  44. If anybody knows a better rule, I'd very interested in hearing about it.
  45.  
  46. >I have seen some headers have a "byte" count, but its not consistant.  I
  47. >suspect that possibly the message ID has the byte count encrypted but I can't
  48. >seem to find docs on how to decrypt it if I am correct.
  49.  
  50. No, the message ID does not have anything encrypted in it.
  51. It's simply a relatively unique identifier chosen by the emailer.
  52.  
  53. >Anyone have any ideas?
  54.  
  55. Occasionally, but most of the time I just play dumb like everybody else.
  56. :-)
  57.  
  58. Nick
  59. -- 
  60. Nick Christie, IT Support,     mailto://nick.christie@oucs.ox.ac.uk
  61. Oxford University Computing Services,   http://sable.ox.ac.uk/~nick
  62. 13 Banbury Road, Oxford OX2 6NN.     Opinions expressed are my own.
  63. "There are no more bugs in my program." -- Anon.
  64.  
  65.  
  66.